<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="__JQ__/jquery.cityselect.js"></script>
<script src="__JQ__/city.min.js"></script>
<form action="<{:U('doAddStudent')}>" method="post" enctype="multipart/form-data">
    <div class="row">
        <table>
            <thead>
            <tr>
                <td>姓名</td><td><input name="sname" class="es"  type="text"></td>
                <td>手机</td><td><input name="mtel" class="es"  type="text"></td>
            </tr>
            <tr>
                <td>密码</td><td><input name="pwd" class="es"  type="text"></td>
                <td>备用手机</td><td><input name="btel" class="es"  type="text"></td>

            </tr>
            <tr>
                <td>年龄</td><td><input name="age" class="es"  type="text"></td>
                <td>固定电话</td><td><input name="ftel" class="es"  type="text"></td>
            </tr>
            <tr>
                <td>性别</td><td><input name="sex" class="es"  type="text"></td>
                <td>邮箱</td><td><input name="email" class="es"  type="text"></td>
            </tr>
            <tr>

                <td>家庭住址</td>
                <td id="city">
                    <select name="home_prov" class="prov"></select>
                    <select name="home_city" class="city" value="<{$user[0].home_city}>"></select>
                    <select name="home_dist" class="dist"value="<{$user[0].home_dist}>"></select>
                    <input type="text" name="home_addr" placeholder="具体地址">
                    <input type="text" placeholder="<{$user[0].home_prov}><{$user[0].home_city}><{$user[0].home_dist}><{$user[0].home_addr}>" disabled>
                </td>
                <td>现居地</td>
                <td id="city1">
                    <select name="live_prov" class="prov"></select>
                    <select name="live_city" class="city" value="<{$user[0].live_city}>"></select>
                    <select name="live_dist" class="dist"value="<{$user[0].live_dist}>"></select>
                    <input type="text" name="live_addr"placeholder="具体地址">
                    <input type="text" placeholder="<{$user[0].live_prov}><{$user[0].live_city}><{$user[0].live_dist}><{$user[0].live_addr}>" disabled>
                </td>
            </tr>
            <tr>

                <td>QQ</td><td><input name="qq" class="es"  type="text"></td>

            </tr>
            <tr>
                <td>学校</td><td><input name="school" class="es"  type="text"></td>
                <td>学历</td><td><input name="education" class="es"  type="text"></td>
            </tr>
            <tr>
                <td>照片</td><td><input type="file" class="es" name="photo" /></td>
                <td>身份证</td><td><input type="text"class="es" name="id_card"></td>
            </tr>
            </thead>

            <tr>
                <td colspan="5" style="text-align: center;padding-top:2%;">
                    <input class="button info tiny radius" type="submit" value="添加">
                    <a href="<{:U(index)}>" class="button info tiny radius">返回</a>
                </td>
            </tr>


        </table>
    </div>
</form>
<script>
    $("#city").citySelect();
    $("#city1").citySelect();

</script>
